import 'package:aihu_getx_app/app/modules/chat/models/user_view_export_req_vo.dart';
import 'package:aihu_getx_app/app/modules/chat/models/user_view_resp_vo.dart';
import 'package:aihu_getx_app/providers/http_provider.dart';

class ChatProvider {
  static Future<List<UserViewRespVO>> getUserViewList(
      UserViewExportReqVO form) async {
    var response = await Http.getList<UserViewRespVO>(
      "/chat/user-view/list",
      queryParameters: form.toJson(),
      fromJsonT: (json) {
        return UserViewRespVO.fromJson(json);
      },
    );
    return Future(() => response);
  }
}
